<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>个人中心 － 修改二维码</title>
    <meta name="keywords" content="响应式后台">
    <meta name="description" content="使用了Html5+CSS3等现代技术">

    <link rel="shortcut icon" href="/favicon.ico">
    <link href="/web/css/bootstrap.min14ed.css?v=3.3.6" rel="stylesheet">
    <link href="/web/css/font-awesome.min93e3.css?v=4.4.0" rel="stylesheet">
    <link href="/web/css/plugins/datapicker/datepicker3.css" rel="stylesheet">
    <link href="/web/css/animate.min.css" rel="stylesheet">
    <link href="/web/css/style.min862f.css?v=4.1.0" rel="stylesheet">
    <link href="/web/css/plugins/toastr/toastr.min.css" rel="stylesheet">
</head>

<body class="gray-bg">
<div class="wrapper wrapper-content  animated fadeInRight">
    <div class="row">
        <div class="col-md-12">
            <div class="ibox">
                <div class="ibox-content">
                    <form id="ajaxform" class="form-horizontal" role="form">
                        <input type="hidden" name="productId" th:value="${companyProduct.productId}">
                        <div class="form-group">
                            <label class="col-sm-2 control-label">会员优惠:</label>
                            <div class="col-sm-2 control-label">
                                <input type="hidden" id="discountTypeHidden" name="discountTypeHidden" th:value="${companyProduct.discountType}">
                                <select class="form-control" name="discountType" id="discountType">
                                    <option value="0">满减</option>
                                    <option value="1" selected = "selected">按比例</option>
                                </select>
                            </div>
                        </div>

                        <div class="hr-line-dashed"></div>

                        <div id="reachfan">
                            <div class="form-group">
                                <label class="col-sm-2 control-label">1,满</label>
                                <div class="col-sm-2 control-label">
                                    <input type="number" class="form-control" name="reach1" placeholder="消费金额" th:value="${companyProduct.reach1 / 100}"/>
                                </div>
                                <label class="col-sm-1 control-label">减</label>
                                <div class="col-sm-2 control-label">
                                    <input type="number" class="form-control" name="score1" placeholder="满减金额" th:value="${companyProduct.score1 / 100}"/>
                                </div>
                            </div>

                            <div class="form-group">
                                <label class="col-sm-2 control-label">2,满</label>
                                <div class="col-sm-2 control-label">
                                    <input type="number" class="form-control" name="reach2" placeholder="消费金额" th:value="${companyProduct.reach2 / 100}"/>
                                </div>
                                <label class="col-sm-1 control-label">减</label>
                                <div class="col-sm-2 control-label">
                                    <input type="number" class="form-control" name="score2" placeholder="满减金额" th:value="${companyProduct.score2 / 100}"/>
                                </div>
                            </div>

                            <div class="form-group">
                                <label class="col-sm-2 control-label">3,满</label>
                                <div class="col-sm-2 control-label">
                                    <input type="number" class="form-control" name="reach3" placeholder="消费金额" th:value="${companyProduct.reach3 / 100}"/>
                                </div>
                                <label class="col-sm-1 control-label">减</label>
                                <div class="col-sm-2 control-label">
                                    <input type="number" class="form-control" name="score3" placeholder="满减金额" th:value="${companyProduct.score3 / 100}"/>
                                </div>
                            </div>

                            <div class="form-group">
                                <label class="col-sm-2 control-label">4,满</label>
                                <div class="col-sm-2 control-label">
                                    <input type="number" class="form-control" name="reach4" placeholder="消费金额" th:value="${companyProduct.reach4 / 100}"/>
                                </div>
                                <label class="col-sm-1 control-label">减</label>
                                <div class="col-sm-2 control-label">
                                    <input type="number" class="form-control" name="score4" placeholder="满减金额" th:value="${companyProduct.score4 / 100}"/>
                                </div>
                            </div>

                            <div class="form-group">
                                <label class="col-sm-2 control-label">5,满</label>
                                <div class="col-sm-2 control-label">
                                    <input type="number" class="form-control" name="reach5" placeholder="消费金额" th:value="${companyProduct.reach5 / 100}"/>
                                </div>
                                <label class="col-sm-1 control-label">减</label>
                                <div class="col-sm-2 control-label">
                                    <input type="number" class="form-control" name="score5" placeholder="满减金额" th:value="${companyProduct.score5 / 100} "/>
                                </div>
                            </div>
                        </div>

                        <div id="percentagefan">
                            <div class="form-group">
                                <label class="col-sm-2 control-label">百分比 (%):</label>
                                <div class="col-sm-2">
                                    <input type="number" class="form-control" placeholder="订单金额的百分比" name="percentage" th:value="${companyProduct.percentage}"/>
                                </div>
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-sm-2 control-label">备注：</label>
                            <div class="col-sm-2">
                                <input type="text" name="remark" class="form-control" placeholder="请输入备注" th:value="${companyProduct.remark}">
                            </div>
                        </div>
                        <div class="hr-line-dashed"></div>
                        <div class="form-group">
                            <div class="col-sm-3"></div>
                            <button id="submitUpdate" class="btn btn-primary col-sm-1">保存</button>
                            <div class="col-sm-2"></div>
                            <div class="col-sm-2"></div>
                            <button id="buttonGoback" class="btn btn-primary col-sm-1">返回</button>
                            <div class="col-sm-3"></div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
<script src="/web/js/jquery.min.js?v=2.1.4"></script>
<script src="/web/js/bootstrap.min.js?v=3.3.6"></script>
<script src="/web/js/content.min.js?v=1.0.0"></script>
<script src="/web/js/plugins/datapicker/bootstrap-datepicker.js"></script>
<script src="/web/js/plugins/validate/jquery.validate.min.js"></script>
<script src="/web/js/plugins/validate/messages_zh.min.js"></script>
<script src="/web/js/plugins/toastr/toastr.min.js"></script>
<script th:inline="javascript" src="/web/js/self/company_product_update_score_v2.js"></script>
</body>
</html>
